package com.probox.common.entity.mapper.customer;

import com.probox.common.entity.domain.customer.CustomerGroup;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.probox.common.entity.vo.customer.CustomerGroupVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 客户分群Mapper接口
 *
 * @author zsy
 * @date 2021-07-15
 */
public interface CustomerGroupMapper extends BaseMapper<CustomerGroup> {

    /**
     * 查询全部客户人群信息
     * @param customerGroupvo
     * @return
     */
    public List<CustomerGroupVo> selectGroupDefinitionInfo(CustomerGroupVo customerGroupvo);

    /**
     * 查询指定客户人群
     * @param groupUid 分群id
     * @return
     */
    public CustomerGroupVo selectByIDGroupInfo(@Param("groupUid")Long groupUid);
}
